package com.program.facesigninsystem.service.impl;

import com.program.facesigninsystem.dao.ISignInActivityDao;
import com.program.facesigninsystem.service.ISignInActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Service
public class SignInActivityService implements ISignInActivityService {
    @Autowired
    private ISignInActivityDao iSignInActivityDao;

    @Override
    public void addNewActivity(String actId, String title, String actType, String caption, String cid, String tid) {
        iSignInActivityDao.addNewActivity(actId,title,actType,caption,cid,tid);
    }

    @Override
    public void addNewLink(String lid, int linkType,String duration, String startTime, String endTime, int status, String actId) {
        iSignInActivityDao.addNewLink(lid,linkType,duration,startTime,endTime,status,actId);
    }

    @Override
    public Object[] selectActivityByTid(String tid) {
        return iSignInActivityDao.selectActivityByTid(tid);
    }

    @Override
    public Object[] selectLinkByActId(String actId) {
        return iSignInActivityDao.selectLinkByActId(actId);
    }
}
